package org.example.myconfiguration;


import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class ConfigurationTest {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(ConfigurationBean.class);
		DemoBean bean = context.getBean(DemoBean.class);
		System.out.println(bean.getAge());
	}
}
